Skip to content

Conversation

@rpkelly
Copy link
Contributor

@rpkelly rpkelly commented Dec 30, 2025

Rust packages using %cargo_build macros build to ${HOME}/.cache rather than %{_builddir}. Override %cross_generate_sbom to scan the correct directory for SBOM generation.

Issue number:

Closes #345

Description of changes:
Override cross_generate_sbom for first party rust packages to point to the correct sources directory.

Testing done:
Built Bottlerocket images and inspected SBOM files, ensure that Bottlerocket Rust dependencies showed up.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Rust packages using %cargo_build macros build to ${HOME}/.cache
rather than %{_builddir}. Override %cross_generate_sbom to scan
the correct directory for SBOM generation.

Signed-off-by: Richard Kelly <[email protected]>
@rpkelly rpkelly merged commit a5d56b3 into bottlerocket-os:develop Jan 2, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include Rust Dependencies in SBOM

3 participants